//
//  XMLabel.m
//  XMKit
//
//  Created by chenming on 2017/12/9.
//  Copyright © 2017年 ChenXiaoMing. All rights reserved.
//

#import "XMLabel.h"

@interface XMLabel ()

@end

@implementation XMLabel

- (void)setContentInset:(UIEdgeInsets)contentInset {
    _contentInset = contentInset;
    NSString *tempString = self.text;
    self.text = @"";
    self.text = tempString;
}

-(void)drawTextInRect:(CGRect)rect {
    [super drawTextInRect:UIEdgeInsetsInsetRect(rect, self.contentInset)];
}

@end
